JSAPI
Seamless Checkout via BOTIM & PayBy Integration
For merchants with a mobile website, this payment scenario enables a smooth checkout experience directly within the BOTIM app. When a customer opens your webpage through a message in BOTIM, the built-in PayBy checkout interface is automatically triggered, allowing the customer to complete their order and payment seamlessly.
This integration is especially beneficial if your customer base frequently uses the PayBy or BOTIM apps. It simplifies the payment process by eliminating the need to design a custom checkout interface—merchants only need to invoke the PayBy payment element, streamlining development and enhancing user convenience.
User Experience
- The customer confirms to pay for an order, the merchant generates a QR codes on the interface.
- The customer uses PayBy, BOTIM to scan the QR code to obtain order information.
- In the order information returned by payby server, there is a parameter tokenUrl, PayBy or BOTIM application will parse this parameter and redirect the customer to the built-in checkout of the app.
- Customers enter their payment details on the payment page and complete the transaction.
- If the payment is completed, the customer will see the payment result on the app.
Integrate the API
Initiate Payment via Dynamic QR Code Using PayBy
Customer Confirmation
Wait for the customer to confirm their intent to proceed with the payment.Create Order Request
Call the Create Order API.- Construct the request according to the API documentation.
- Set the
paySceneCode
parameter toDYNQR
.
Receive Token URL
If the API request is successful, PayBy will return atokenUrl
.Redirect to Built-in Checkout
- The PayBy or BOTIM app will parse the
tokenUrl
. - The customer will be automatically redirected to the app’s built-in checkout interface to complete the payment.
- The PayBy or BOTIM app will parse the
Payment Notification
After the payment is completed:- PayBy will notify the result to either the PayBy server or the BOTIM app.
- The customer will see the payment result displayed in the app.
Asynchronous Notification
If the notifyUrl is set in the order creation request, after the transaction, PayBy will send payment result to the url.
Change Order Status
You can initiate Revoke, Cancel, Refund and other operations on the created order.
Retrieve Order
To retrieve the order detail, call the Retrieve Order Detail API.